
#ifndef GISAO_MOCK_H
#define GISAO_MOCK_H

#include <stdint.h>
#include <string>
#include "app_platform/cntl_info.h"

#include "erp/gis/po/regionpo_gis.h"	
#include <set>	
#include <map>	
#include "erp/gis/po/ipaddresspo_gis.h"	
#include "intf_gisao.h"


namespace erp
{
namespace gis
{
namespace ao
{

	class CGisAoMock : public IGisAo{
	public:
	    virtual uint32_t GetIpAddressByIp(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				const std::set<uint32_t >& ipList,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint32_t,erp::gis::po::CIpAddressPo >& ipAddress,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			ipAddress = m_ipAddress;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetSmallestRegionByIp(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				const std::set<uint32_t >& ipList,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint32_t,std::vector<erp::gis::po::CRegionPo > >& smallestRegion,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			smallestRegion = m_smallestRegion;
			outReserve = m_outReserve;
			return 0;
	    }		
	
   public:
			std::string m_errmsg;
			std::map<uint32_t,erp::gis::po::IpAddressPo > m_ipAddress;
			std::string m_outReserve;
			std::map<uint32_t,std::vector<erp::gis::po::RegionPo > > m_smallestRegion;
	};
	
}
}
}

#endif /* GISAO_MOCK_H */

